public class Student {
    private String name;
    private int age;

    public Student(String studentName, int studentScore) {
        name = studentName;
        age = studentScore;
    }

    @Override
    public String toString() {
        return String.format("Student(name: %s, age: %d)", name, age);
    }
    //Student类是专门用来测试泛型的
    public static void main(String[] args) {
        Array<Student> arr = new Array<>();
        arr.push(new Student("莱纳·布朗", 21));
        arr.push(new Student("贝尔托特·胡佛", 17));
        arr.push(new Student("亚妮·雷恩哈特", 20));
        System.out.println(arr);
    }
}
